<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
request.setCharacterEncoding("UTF-8");
String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="<%=basePath%>">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" type="text/css"	href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/icon.css">
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="<%=basePath %>admin/assets/css/backOffice/myeasyui_base.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>admin/assets/css/backOffice/newsStyle.css">

<style type="text/css">

#tinybox{position:absolute; display:none; padding:10px; background:#ffffff url(image/preload.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:2000;}
#tinymask{position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000000; z-index:1500;}
#tinycontent{background:#ffffff; font-size:1.1em;}


</style>
<body>
    <div class="topTitle">
    	报告管理
    </div>
    
    <!-- Begin 报告管理面板 -->
 	<div id="main_layout" class="easyui-layout">
	    <div data-options="region:'center',title:'报告管理'" style="padding:5px;background:#eee;">
	    	<table class="easyui-datagrid"  id="report" 
				data-options="rownumbers:true,singleSelect:true,url:'admin/report/report_getReportJson.action',method:'get',toolbar:'#btn_report',checkOnSelect: true,pageSize: '20',pageList: [20, 30, 40, 50, 100],pagination:true,fit:true" >
			
			<thead>
				<tr>
					<th data-options="field:'reportId',width:100,hidden:true">编号</th>
					<th data-options="field:'reportNumber',fit:'true',align:'left'">报告编号</th>
					<th data-options="field:'sampleName',fit:'true',align:'left'">样品名称</th>
					<th data-options="field:'scrqph',fit:'true',align:'left'">生产日期/批号</th>
					<th data-options="field:'danwei',fit:'true',align:'left'"formatter="showDanweiFormatter">送检机构</th>
					<th data-options="field:'shangchuan',fit:'true',align:'left'"formatter="showShangchuanFormatter">检验机构</th>
					<th data-options="field:'file',width:80,align:'center'" formatter="pdfFileFormatter">查看报告</th>
					<th data-options="field:'addTime',width:150,align:'center'"formatter="dateHHmmssFormatter">上传时间</th>
				</tr>
			</thead>
		</table>
		
    </div>
</div>
	<!-- End 报告管理面板 -->
    
     <!-- Begin 菜单详情操作按钮 -->
    <div id="btn_report" style="height:auto">
    	<div style="margin-bottom:5px">
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="remove()">删除</a>
		</div>
		<div>
			<table style="font-size: 13">
				<tr>
					<td style="text-align: right;">
						报告编号： 
					</td>
					<td>
						<input id="search_reportNumber" class="easyui-textbox" data-options="" style="width:150px"/>
					</td>
					<td class="align_right_100">
						样品名称： 
					</td>
					<td>
						<input id="search_sampleName" class="easyui-textbox" data-options="" style="width:150px"/>
					</td>
					<td class="align_right_100">
						上传时间：
					</td>
					<td> 
						<input  class="easyui-datebox" id="search_start"  data-options="sharedCalendar:'#cc'" style="width:110px"></input>
						&nbsp;~&nbsp;
						<input  class="easyui-datebox" id="search_end"  data-options="sharedCalendar:'#cc'" style="width:110px"></input>
					</td>
				</tr>
				<tr>
					<td style="text-align: right;">
						送检机构： 
					</td>
					<td>
						<input class="easyui-textbox" id="search_danwei"  data-options="" style="width:150px"></input>
					</td>
					<td class="align_right_100">
						检验机构： 
					</td>
					<td>
						<input class="easyui-textbox" id="search_shangchuan" data-options="" style="width:150px"/>
					</td>
					<td class="align_right_100">
						<a class="easyui-linkbutton" iconCls="icon-search" onclick="searchReport()">查询</a>&nbsp; &nbsp;
					</td>
					<td></td>
				</tr>
			</table>
			<div id="cc" class="easyui-calendar"></div>
			<br>
		</div>
	</div>
    <!-- End 菜单详情操作按钮 -->
    
    <!-- Begin 上传人详情 -->
	<div id="uploader_dialog" class="easyui-dialog"  style="padding:10px" data-options="modal:true,closed:true,resizable:true,shadow:false">
	    	<table style="width: 350px" align="center">
	    		<tr>
	    			<td align="right">编&nbsp; &nbsp; &nbsp;号：</td>
	    			<td id = "accountId"  style="width: 230px"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">企业名称：</td>
	    			<td id = "compName" style="width: 230px"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">联 系 人：</td>
	    			<td  id = "linkMan"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">电&nbsp; &nbsp; &nbsp;话：</td>
	    			<td  id = "phone"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">传&nbsp; &nbsp; &nbsp;真：</td>
	    			<td   id = "fax"></td>
	    		</tr>
	    		<tr>
	    			<td align="right">邮&nbsp; &nbsp; &nbsp;箱：</td>
	    			<td   id = "email"></td>
	    		</tr>
	    	</table>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="dialog_close()">关闭</a>
	    </div>
	</div>
	<!-- End 上传人详情 -->
    
	<script type="text/javascript" src="<%=basePath %>admin/assets/js/BackOffice/mine-function.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/youbiao/report/js/js_report.js"></script>
</body>
</html>
